import akshare as ak
import sys
# 基金持股
# 代码简称


def stock_fund_stock_holder(code):
    stock_fund_stock_holder = ak.stock_fund_stock_holder(stock=code)
    for indexs in stock_fund_stock_holder.index:
        s = ''
        index = stock_fund_stock_holder.loc[indexs]
        for i in range(index.size):
            s = s + str(index[i])
            if i != index.size - 1:
                s = s + ","
        print(s)



if __name__ == '__main__':
    for i in range(1, len(sys.argv)):
        url = sys.argv[i]
        stock_fund_stock_holder(url)